<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传页面</title>
</head>
<body>
<div style="display: flex;text-align: center;justify-content: space-around;padding-top: 100px">
<form th:action="@{/file/upload}" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <!--这里的name属性必须和controller中的MultipartFile属性名一致-->
            <td><input type="file" name="file"/></td>
            <td><input type="submit" value="上传"/></td>
        </tr>
    </table>
</form>
</div>
</body>
</html>